import { IsNotEmpty, IsString, IsArray } from 'class-validator';
import { PartialType } from '@nestjs/mapped-types';
export class AddFriendDto {
  @IsString()
  @IsNotEmpty()
  user: string;

  @IsNotEmpty()
  friend: number;
}

export class addGroupDto {
  @IsNotEmpty()
  @IsArray()
  groupItem: string[];

  @IsNotEmpty()
  groupCode: string;

  @IsString()
  @IsNotEmpty()
  user: string;
}

export class UpdateFriendDto extends PartialType(AddFriendDto) {}
